package com.baiyang.app.ui.mine.exchange;

import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;

public class RecordExchangeViewModel extends ViewModel {

    private MutableLiveData<JSONObject> goods;
    private MutableLiveData<JSONObject> exchangeResult;

    public RecordExchangeViewModel(){
        goods = new MutableLiveData<>();
        exchangeResult = new MutableLiveData<>();
    }

    public void setGoods(JSONObject result){
        this.goods.postValue(result);
    }
    public LiveData<JSONObject> getGoods(){
        return goods;
    }
    public void setExchangeResult(JSONObject result){
        this.exchangeResult.postValue(result);
    }
    public LiveData<JSONObject> getExchangeResult(){
        return exchangeResult;
    }
}
